package com.boomcat.boomcat.service.Impl;

import com.boomcat.boomcat.dao.ExpertDao;
import com.boomcat.boomcat.domain.Expert;
import com.boomcat.boomcat.service.ExpertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class ExpertServiceImpl implements ExpertService {
    @Autowired
    private ExpertDao expertDao;
    @Override
    public Expert selectExpert(String account, String password) {


        return  expertDao.selectByAccountAndPasswordUser(account,password);
    }

    @Override
    public void register(Expert expert) {

    }

    @Override
    public List<Expert> list() {
        return expertDao.list();
    }
}
